package hnlg.com.cn.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import lombok.extern.slf4j.Slf4j;

@Controller
@Slf4j
public class LoginController {
   
	@RequestMapping(value="/index",method = RequestMethod.GET)
	public String index(){
		return "index";
	}
	
	@GetMapping("/system/unit")
	public String unit(){
		return "/unitmanage/unit";
	}
	
	@GetMapping("/system/location")
	public String location(){
		return "/locationmanage/location";
	}
	
	@GetMapping("/system/house")
	public String house(){
		return "/housemanage/house";
	}
	
	
	@GetMapping("/hetongmanage")
	public String hetongmanage(){
		log.info("进入合同管理");
		return "/hetongmanage/hetong";
	}
	
	@GetMapping("/hetongmanage/add")
	public String addHetong(){
		return "hetongmanage/add";
	}
	
	@GetMapping("/unit/add")
	public String add(){
		return "unitmanage/add";
	}
	
	@GetMapping("/location/add")
	public String addLocation(){
		return "locationmanage/add";
	}
	
	@GetMapping("/house/add")
	public String addHouse(){
		return "housemanage/add";
	}
}
